﻿using System;
using System.Collections.Generic;

static class Extensions
{
    public static int WordCount(this string str)
    {
        return (str.Split(new char[] { '.', ',', '!', '?', ' '}, StringSplitOptions.RemoveEmptyEntries).Length);
    }

    public static void IncreaseWith(this IList<int> list, int with)
    {
        for (int i = 0; i < list.Count; i++)
        {
            list[i] += with;
        }
    }
}

